<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 <xsl:output method="html" encoding="iso-8859-1" indent="no"/>
 <xsl:param name="scriptname"/>
 <xsl:param name="chapter"/>
 <xsl:param name="paragraph"/>
 <xsl:param name="file"/>
 <xsl:variable name="chnameC"><xsl:value-of select="$chapter"/></xsl:variable>
 <xsl:variable name="parnameC"><xsl:value-of select="$paragraph"/></xsl:variable>
 <xsl:template match="xicshelp">
   <html>
   <head>
       <title>XICS Hilfe: <xsl:value-of select="title"/><xsl:value-of select="$chapter"/><xsl:value-of select="$paragraph"/></title>
       <style type="text/css">
           h1 {background-color: #E0F6FD; border: 1px solid grey; width: 96%; padding:3px; border-bottom:4px solid grey; border-right:4px solid grey}
           h2 {background-color: #E0F6FD; border: 1px solid grey; width: 96%; padding:3px; border-bottom:4px solid grey; border-right:4px solid grey}
           div.textcontent {display: block; margin-left: 2%; width: 92%}
           div.image {border: 1px solid black; padding: 10px; margin: 10px; background-color: #E0F6FD}
           table {padding: 0px; margin: 0px; margin-top: 20px; margin-bottom: 20px;}
       </style>
   </head>
   <body>
    <h2>XICS Hilfe: <a title="ganzes Dokument sehen" style="color:red" href="{$scriptname}/help/show/{$file}#{$chapter}{$paragraph}"><xsl:value-of select="title"/></a></h2>
    <xsl:for-each select="chapter">
        <xsl:if test="name=$chnameC">
        <xsl:variable name="chname" select="name"/>
        <h3><a name="{$chname}"><xsl:value-of select="title"/></a></h3>
        <xsl:for-each select="content/par">
            <xsl:if test="name=$parnameC">
            <xsl:variable name="parname" select="name"/>
            <h4><a name="{$chname}{$parname}"><xsl:value-of select="title"/></a></h4>
            <div class="textcontent">
            <xsl:apply-templates select="text"/>
            </div>
            </xsl:if>
        </xsl:for-each>
        </xsl:if>
    </xsl:for-each>
    </body>
    </html>
 </xsl:template>
 <xsl:include href="helpCommon.xsl"/>
</xsl:stylesheet>